/**
 * This program is free software but WITHOUT ANY WARRANTY OR CONDITIONS OF ANY KIND.
 *
 * Copyright (C) 2008 www.pretty-tools.com
 */

/**
 * Factory to create objects.
 */
var yrprxFactory = {};

yrprxFactory.createLogger = function(prefix)
{
    return new yrprxLogger(prefix);
}

yrprxFactory.createResourceBundle = function(url)
{
    return new yrprxResourceBundle(url);
}

yrprxFactory.createPreferences = function(branch)
{
    return new yrprxPreferences(branch);
}

yrprxFactory.trustHelperExists = function()
{
    return false; //TODO: implement it
}

yrprxFactory.getTrustHelper = function()
{
    return null; //TODO: implement it
}

yrprxFactory.nativeHelperExists = function()
{
    return false; //we don't need Native Helper for IE
}

yrprxFactory.createNativeHelper = function()
{
    return null;
}
